﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“CiZhiTuiXiuService”。
    public class CiZhiTuiXiuService : ICiZhiTuiXiuService
    {
        private CiZhiTuiXiuBO bo = new CiZhiTuiXiuBO();
        public ObservableCollection<CiZhiModel> GetCiZhiModel(string orgid, int id)
        {
            return bo.GetCiZhiModel(orgid, id);
        }


        public bool InsertCiZhi(CiZhiModel model)
        {
            return bo.InsertCiZhi(model);
        }

        public bool UpdateCiZhi(CiZhiModel model)
        {
            return bo.UpdateCiZhi(model);
        }

        public bool UpdateCiZhiStatus(int id, DateTime? dt)
        {
            return bo.UpdateCiZhiStatus(id,dt);
        }


        public bool DeleteCiZhi(int id)
        {
            return bo.DeleteCiZhi(id);
        }


        public ObservableCollection<TuiXiuModel> GetTuiXiuModel(string orgid, int id)
        {
            return bo.GetTuiXiuModel(orgid, id);
        }

        public bool InsertTuiXiu(TuiXiuModel model)
        {
            return bo.InsertTuiXiu(model);
        }

        public bool UpdateTuiXiu(TuiXiuModel model)
        {
            return bo.UpdateTuiXiu(model);
        }

        public bool UpdateTuiXiuStatus(int id, DateTime? dt)
        {
            return bo.UpdateTuiXiuStatus(id, dt);
        }

        public bool DeleteTuiXiu(int id)
        {
            return bo.DeleteTuiXiu(id);
        }
    }
}
